package tt.dz.order.pojo;

import java.util.HashMap;
import java.util.Map;

import tt.dz.order.dao.BaseDAOUtil;

/**
 * 操作人员账号信息
 * 
 * @author NIBO
 *
 */
public class PubOperInfo {
	// 唯一标识
	String managerId;
	// 电话号码
	String mobileNo;
	String merchantCode;

	/**
	 * 根据订单号查询订单信息
	 * 
	 * @param orderNo
	 *            订单号
	 * @return 订单信息
	 */
	public  PubOperInfo getByManagerId() {
		String sql = "SELECT manager_id managerId, mobile_no mobileNo,merchantCode from pub_oper_list WHERE manager_id = :managerId";
		Map<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("managerId", this.managerId);
		return BaseDAOUtil.queryForObject(sql, paramMap, PubOperInfo.class);
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}

	public String getMobileNo() {
		return mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

}
